%% Author: gnibre
%% Created: Jul 12, 2009
%% Description: TODO: Add description to ifrend_common
-module(ifriend_common).

-compile(export_all).


%%
%% API Functions
%%


%% @spec (phonenumber_id)->  #account.followedlist 
queryAllFollowedFunc(ID)->
	ifriend_db:select_followedlist_from_account(ID).		
	

queryFrameFunc(ID)->
	ifriend_db:select_from_frame_byid(ID).



%%@spec  newfromFunc(ID,NEWFOM)-> ok|{error,Why} 
newfomFunc(ID,NEW)->
	case ifriend_db:back_up_old_frame(ID) of
		ok->
			ok;
		_->
			error
	end,
	ok.


%%
%% Local Functions
%%

